<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<form action="#" th:action="@{/doLogin}" th:object="${loginBean}" method="post">
    <p>username: <input type="text" th:field="*{userName}" placeholder="请输入用户名"/> </p>
    <p>password: <input type="password" th:field="*{password}" placeholder="请输入密码"/> </p>

    <p>captcha: <p th:text="${captcha_expr}"></p> <input type="text" name="captchaValue" th:value="${captcha_value}" placeholder="验证码"/> </p>
    <input type="submit" value="submit"/>
    <input type="reset" value="reset"/>
</form>

</body>
</html>